#! /bin/sh
#
# $Id: netflow.sh.in 225 2006-11-04 16:39:35Z gslin $
#

# PROVIDE: netflow
# REQUIRE: LOGIN

. %%RC_SUBR%%

name="netflow"
rcvar=`set_rcvar`

load_rc_config $name

: ${netflow_enable="NO"}

start_cmd=start_cmd

start_cmd()
{
	su -m nobody -c "%%LOCALBASE%%/bin/flow-capture -e 288 -N 0 -n 143 -p - -V 5 -z 9 -w /netflow 127.0.0.1/0/2055"
	%%LOCALBASE%%/sbin/fprobe 127.0.0.1:2055
}

run_rc_command "$1"
